# 请在此输入您的代码
n = int(input())
nums = list(map(int, input().split()))
r = 1
maxlength = 0
for l in range(n):
    while r < n and (nums[r] > nums[r - 1] or r <= l):
        r += 1
    maxlength = max(maxlength, r - l)
print(maxlength)
